package com.nidu.demo.user.convertor;

import com.nidu.demo.convertor.MapStructConfig;
import com.nidu.demo.user.dto.UserListQry;
import com.nidu.demo.user.dto.UserPageQry;
import com.nidu.demo.user.dto.UserQry;
import com.nidu.demo.user.model.UserCriteria;
import org.mapstruct.Mapper;

@Mapper(config = MapStructConfig.class)
public interface UserCriteriaConvertor {

    UserCriteria toDataObject(UserQry qry);

    UserCriteria toDataObject(UserListQry listQry);

    UserCriteria toDataObject(UserPageQry pageQry);

}